$2833
","chat_template":"{{- bos_token }} {#- This block extracts the system message
","chat_template":"{ { - bos_token }}
{ #- This block extracts the system message, so we can slot it into the right place. #}
{ #- System message + builtin tools #}
{ { - "system\n\n" }}
{ { - "Environment: ipython\n" }}
{ { - "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
{ { - "Cutting Knowledge Date: December 2023\n" }}
{ { - "Today Date: " + date_string + "\n\n" }}
{ { - "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
{ { - 'Respond in the format { "name": function name, "parameters": dictionary of argument name and its value}.' }}
{ { - "Do not use variables.\n\n" }}
{ %- for t in tools %}
{ { - t | tojson(indent=4) }}
{ { - "\n\n" }}
{ %- endfor %}
{ { - system_message }}
{ { - "" }}
{ #- Custom tools are passed in a user message with some extra guidance #}
{ #- Extract the first user message so we can plug it in here #}
{ { - raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
{ { - 'user\n\n' -}}
{ { - "Given the following functions, please respond with a JSON for a function call " }}
{ { - "with its proper arguments that best answers the given prompt.\n\n" }}
{ { - 'Respond in the format { "name": function name, "parameters": dictionary of argument name and its value}.' }}
{ { - "Do not use variables.\n\n" }}
{ %- for t in tools %}
{ { - t | tojson(indent=4) }}
{ { - "\n\n" }}
{ %- endfor %}
{ { - first_user_message + ""}}
{ %- for message in messages %}
{ { - '' + message['role'] + '\n\n'+ message['content'] | trim + '' }}
{ { - raise_exception("This model only supports single tool-calls at once!") }}
{ { - 'assistant\n\n' -}}
{ { - "" + tool_call.name + ".call(" }}
{ %- for arg_name, arg_val in tool_call.arguments | items %}
{ { - arg_name + '="' + arg_val + '"' }}
{ { - ", " }}
{ %- endfor %}
{ { - ")" }}
{ { - 'assistant\n\n' -}}
{ { - '{ "name": "' + tool_call.name + '", ' }}
{ { - '"parameters": ' }}
{ { - tool_call.arguments | tojson }}
{ { - "}" }}
{ #- This means we're in ipython mode #}
{ { - "" }}
{ { - "" }}
{ { - "ipython\n\n" }}
{ { - message.content | tojson }}
{ { - message.content }}
{ { - "" }}
{ %- endfor %}
{ { - 'assistant\n\n' }}
","eos_token":"","pad_token":"","unk_token":null}},"createdAt":"2024-12-22T22:02:19.000Z","discussionsDisabled":false,"downloads":0,"downloadsAllTime":71,"id":"ReadyArt/Anubis-70B-v1_EXL2_4.0bpw_H8","isLikedByUser":false,"availableInferenceProviders":[],"inference":"","lastModified":"2024-12-22T22:08:54.000Z","likes":0,"librariesOther":[],"trackDownloads":true,"model-index":null,"private":false,"repoType":"model","gated":false,"pwcLink":{ "error":"Unknown error, can't generate link to Papers With Code."},"tags":["safetensors","llama","license:other","4-bit","exl2","region:us"],"tag_objs":[{ "id":"safetensors","label":"Safetensors","type":"library"},{ "id":"llama","label":"llama","type":"other"},{ "id":"4-bit","label":"4-bit precision","type":"other"},{ "id":"exl2","label":"exl2","type":"other"},{ "id":"license:other","label":"other","type":"license"},{ "type":"region","label":"🇺🇸 Region: US","id":"region:us"}],"hasBlockedOids":false,"region":"us","isQuantized":false,"xetEnabled":true},"canWrite":false,"shouldUpdateUrl":true,"inferenceContextData":{ "billableEntities":[],"entityName2Providers":{ }}}">